package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TSalesmanCommission;
import com.bootdo.project.dao.TSalesmanCommissionMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TSalesmanCommissionService {

	@Autowired
    private TSalesmanCommissionMapper tSalesmanCommissionMapper;
    
    public int deleteByPrimaryKey(Long id){
        return tSalesmanCommissionMapper.deleteByPrimaryKey(id);
    }

    public int insert(TSalesmanCommission record){
        return tSalesmanCommissionMapper.insert(record);
    }

    public int insertSelective(TSalesmanCommission record){
        return tSalesmanCommissionMapper.insertSelective(record);
    }

    public TSalesmanCommission selectByPrimaryKey(Long id){
        return tSalesmanCommissionMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TSalesmanCommission record){
        return tSalesmanCommissionMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TSalesmanCommission record){
        return tSalesmanCommissionMapper.updateByPrimaryKey(record);
    }

    public List<TSalesmanCommission> selectByCondition(TSalesmanCommission record){
        return tSalesmanCommissionMapper.selectByCondition(record);
    }

    public List<TSalesmanCommission> selectAll(){
        return tSalesmanCommissionMapper.selectAll();
    }

    public List<TSalesmanCommission> selectByPage(Page<TSalesmanCommission> page){
        return tSalesmanCommissionMapper.selectByPage(page);
    }

    public Integer count(TSalesmanCommission record){
        return tSalesmanCommissionMapper.count(record);
    }

    public int deleteByCondition(TSalesmanCommission record){
        return tSalesmanCommissionMapper.deleteByCondition(record);
    }

}
